import React, { lazy } from "react";
const lazyLoad = (path) => {
  const Comp = lazy(()=>import(/* @vite-ignore */`../../${path}`))
  return (
    <React.Suspense fallback={<div>Loading...</div>}>
      <Comp />
    </React.Suspense>
  );
};
export default lazyLoad;